package com.xaicode.template.themeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Locker
 * @date 2021/8/4 0004 15:06
 */
@Controller
public class IndexController {

    @RequestMapping(value = {"/", "index"})
    public String index(Model model) {
        model.addAttribute("msg", "hello");
        return "index";
    }

}
